﻿<phone:PhoneApplicationPage 
    x:Class="Vanglen.YDLMSCP.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    xmlns:local="clr-namespace:Vanglen.YDLMSCP"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True"
    local:TiltEffect.IsTiltEnabled="True" Loaded="PhoneApplicationPage_Loaded">

    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Grid x:Name="LayoutRoot">
        <controls:Panorama>
            <controls:Panorama.Title>
                <TextBlock Text="意大利美食菜谱" Margin="0,30,0,0"></TextBlock>
            </controls:Panorama.Title>
            <!--Panorama 项目一-->
            <controls:PanoramaItem Header="功能页面">
                <ListBox x:Name="pList" FontSize="{StaticResource PhoneFontSizeLarge}" ItemsSource="{Binding}" Tap="pList_Tap">
                    <ListBox.ItemContainerStyle>
                        <Style TargetType="ListBoxItem">
                            <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
                        </Style>
                    </ListBox.ItemContainerStyle>
                    <!--<ListBox.ItemTemplate>
                        <DataTemplate>
                            <StackPanel>
                                <TextBlock TextWrapping="Wrap" Height="60" Margin="12,0,12,0" Text="查询菜谱" Style="{StaticResource PhoneTextTitle3Style}" />
                            </StackPanel>
                        </DataTemplate>
                    </ListBox.ItemTemplate>-->
                    <ListBox.Items>

                        <!--<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" >
                            <TextBlock TextWrapping="Wrap" Height="80" Padding="20,20,0,0" Text="查询菜谱" Style="{StaticResource PhoneTextTitle3Style}" Width="370" />
                            <Image Height="24" HorizontalAlignment="Right" Name="image1" Stretch="Fill" Width="24" Source="/Vanglen.YDLMSCP;component/img/btn_step.png" />
                        </StackPanel>-->
                        <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" >
                            <TextBlock TextWrapping="Wrap" Height="80" Padding="20,20,0,0" Text="查看全部菜谱" Style="{StaticResource PhoneTextTitle3Style}" Width="370" />
                            <Image Height="24" HorizontalAlignment="Right" Name="image2" Stretch="Fill" Width="24" Source="/Vanglen.YDLMSCP;component/img/btn_step.png"  />
                        </StackPanel>
                        <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" >
                            <TextBlock TextWrapping="Wrap" Height="80" Padding="20,20,0,0" Text="已收藏的菜谱" Style="{StaticResource PhoneTextTitle3Style}" Width="370" />
                            <Image Height="24" HorizontalAlignment="Right" Name="image3" Stretch="Fill" Width="24" Source="/Vanglen.YDLMSCP;component/img/btn_step.png"  />
                        </StackPanel>
                        <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" >
                            <TextBlock TextWrapping="Wrap" Height="80" Padding="20,20,0,0" Text="已查看的菜谱" Style="{StaticResource PhoneTextTitle3Style}" Width="370" />
                            <Image Height="24" HorizontalAlignment="Right" Name="image4" Stretch="Fill" Width="24" Source="/Vanglen.YDLMSCP;component/img/btn_step.png"  />
                        </StackPanel>
                        <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" >
                            <TextBlock TextWrapping="Wrap" Height="80" Padding="20,20,0,0" Text="随机查看菜谱" Style="{StaticResource PhoneTextTitle3Style}" Width="370" />
                            <Image Height="24" HorizontalAlignment="Right" Name="image5" Stretch="Fill" Width="24" Source="/Vanglen.YDLMSCP;component/img/btn_step.png"  />
                        </StackPanel>
                    </ListBox.Items>
                </ListBox>
            </controls:PanoramaItem>

            <!--Panorama 项目二-->
            <controls:PanoramaItem Header="关于我们">
                <Grid>
                    <TextBlock TextWrapping="Wrap" 
                               Text="   联系我们：
    Email:omicle@sina.com" 
                               Style="{StaticResource PhoneTextNormalStyle}"></TextBlock>
                </Grid>
            </controls:PanoramaItem>
        </controls:Panorama>
    </Grid>

    <!--演示 ApplicationBar 用法的示例代码-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="按钮 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="按钮 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="菜单项 1"/>
                <shell:ApplicationBarMenuItem Text="菜单项 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>